//
//  BaseCollectionViewCell.m
//  WalkUp
//
//  Created by 李沛池 on 16/10/24.
//  Copyright © 2016年 LPC. All rights reserved.
//

#import "BaseCollectionViewCell.h"

@implementation BaseCollectionViewCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    [self layoutIfNeeded];
}

- (void)updateData:(id)model
{
    
}

- (void)updateData:(id)model withDic:(id)dic
{
    
}

- (void)updateData:(id)model withObject:(id)object
{
    
}

- (UIViewController*)viewController
{
    for (UIView* next = [self superview]; next; next = next.superview) {
        UIResponder* nextResponder = [next nextResponder];
        if ([nextResponder isKindOfClass:[UIViewController class]]) {
            return (UIViewController*)nextResponder;
        }
    }
    return nil;
}

@end
